package com.hegongda.okcmall.product.vo;

import com.hegongda.okcmall.product.entity.SkuImagesEntity;
import com.hegongda.okcmall.product.entity.SkuInfoEntity;
import com.hegongda.okcmall.product.entity.SpuInfoEntity;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author liueidong
 * @create 2021-03-21 16:31
 */
@Data
public class ItemVo {
    // sku 的基本信息
    private SkuInfoEntity skuInfoEntity;
    // spu 介绍
    private SpuInfoEntity spuInfoEntity;
    // 展示的图片信息
    private List<SkuImagesEntity> images;
    // spu的销售属性
    private List<SkuSaleAttrVo> skuSaleAttrVos;
    // spu的规格属性
    private List<SpuBaseAttrVo> spuBaseAttrVos;


    @Data
    public static class SkuSaleAttrVo{
        private String attrId;
        private String attrName;
        private List<String> attrValues;
    }

    @Data
    public static class SpuBaseAttrVo{
        private String groupName;
        private List<Map<String,String>> attrInfo;
    }

}
